//
//  LLClientManager.h
//  LLWeChat
//
//  Created by GYJZH on 7/20/16.
//  Copyright © 2016 GYJZH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <HyphenateLite/EMClient.h>

#define LLClientAutoLoginCompleteNotification @"LLClientAutoLoginCompleteNotification"

@interface LLClientManager : NSObject <EMClientDelegate>

@property (nonatomic) EMConnectionState connectionState;

+ (instancetype)sharedManager;

- (void)loginWithUsername:(NSString *)username password:(NSString *)password complete:(void(^)(EMError *error))complete;
/**
 *  该方法后台登出，同时负责HUD显示
 */
- (void)logout:(void(^)(EMError *error))complete;
//初始化环信一些配置参数
-(void)initializeSDKWithOptionsIsAutoLogin:(BOOL)isAutoLogin appkey:(NSString *)Appkey apnsCertName:(NSString *)apnsCertName;
@end
